<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap">

    <div class="row">
        <div class="col-md-12">
            <!-- START TABLE HOVER ROWS -->
            <div class="panel panel-default">
                <div class="panel-heading">
                    <div class="panel-title-box" style="width: 30%">
                        <h3 class="panel-title"><strong>{{'查询结果：' | dyLanguage}}</strong></h3>
                    </div>
                    <div class="search-div">
                        <ul class="panel-controls panel-controls-title">
                            <li class="x-navigation x-navigation-horizontal x-navigation-panel" style="width: auto; background-color: transparent;">
                                <div class="xn-search">
                                    <form role="form">
                                        <input ng-model="queryPara.key" class="searchInputWhite" ng-keydown="onQueryKeyDown()" type="text" name="search" placeholder="{{'查询' | dyLanguage}}"/>
                                    </form>
                                </div>
                            </li>
                            <li class="top-panel-controls">
                                <div class="btn-group">
                                    <a href="javascript:void(0);" data-toggle="dropdown" class="btn btn-primary dropdown-toggle"><i class="fa fa-plus"></i>{{'新增' | dyLanguage}}<span class="caret"></span></a>
                                    <ul class="dropdown-menu" role="menu" style="text-align: center; min-width: 120px;">
                                        <li ng-click="addContent()"><a>{{'文章' | dyLanguage}}</a></li>
                                        <li ng-click="addFolder()"><a>{{'文件夹' | dyLanguage}}</a></li>
                                    </ul>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="panel-body table-responsive">

                    <div ng-show="recordBar.bar" class="col-md-12 col-xs-12">
                        <div class="panel-footer" style="text-align: left;">
                            <button ng-show="recordBar.showEdit" class="btn btn-danger" ng-click="edit()"><i class="fa fa-times"></i>{{'编辑' | dyLanguage}}</button>
                            &nbsp; &nbsp;
                            <button ng-show="recordBar.showMove" class="btn btn-danger" ng-click="move()"><i class="fa fa-times"></i>{{'移动' | dyLanguage}}</button>
                        </div>
                    </div>


                    <p style="float: left;">{{'本次查询共查询到' | dyLanguage}}{{pagination.length}}{{'条记录。' | dyLanguage}}</p>
                    <cm-pagination ng-model="pagination" ng-show="pagination.length > 0"></cm-pagination>
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th></th>
                            <th>{{'名称' | dyLanguage}}</th>
                            <th>{{'类型' | dyLanguage}}</th>
                            <th>{{'描述' | dyLanguage}}</th>
                            <th>{{'创建时间' | dyLanguage}}</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-show="currentParentId">
                            <td colspan="5"><a href="javascript:void(0)" ng-click="backSpace()">{{'/...' | dyLanguage}}</a></td>
                        </tr>
                        <tr style="word-wrap:break-word;word-break: break-all;" ng-repeat="record in queryResult.datas">
                            <td><input style="width: 18px;height: 18px;" ng-change="changeCheck()" type="checkbox" ng-model="record.checked"/></td>

                            <td ng-show="record.recordType == 'CONTENT'" width="50%"><span class="fa fa-building-o"></span>&nbsp;&nbsp;<a href="javascript:void(0)" ng-click="openDetail(record)">{{record.name}}</a></td>
                            <td ng-show="record.recordType == 'FOLDER'" width="50%" colspan="2"><span class="fa fa-folder-o"></span>&nbsp;&nbsp;<a href="javascript:void(0)" ng-click="openFolder(record)">{{record.name}}</a></td>

                            <td ng-show="record.recordType == 'CONTENT'">{{record.studyClassType | EnumFilter:EnumName.StudyClassTypeEnum}}</td>
                            <td>{{record.remark}}</td>
                            <td width="20%" ng-bind="record.createDate.toDateTime()"></td>
                        </tr>
                        </tbody>
                    </table>
                    <cm-pagination ng-model="pagination" ng-show="pagination.length > 0"></cm-pagination>
                </div>
            </div>
            <!-- END TABLE HOVER ROWS -->

        </div>
    </div>

</div>
<!-- END PAGE CONTENT WRAPPER -->
<ui-view name="map-child"></ui-view>